package cn.org.xuanguang.kepler.hormos.rdb.dml.operator.insert;

import cn.org.xuanguang.kepler.hormos.rdb.dml.operator.OperatorResult;
import lombok.Getter;
import lombok.Setter;

public class InsertOperatorResulet implements OperatorResult<InsertOperatorResulet> {
    /**
     * 更新记录数
     */
    @Setter
    @Getter
    private int added;

    private InsertOperatorResulet(int added) {
        this.added = added;
    }

    public static InsertOperatorResulet of(int added) {
        return new InsertOperatorResulet(added);
    }


    /**
     * 获取的结果集
     *
     * @return
     */
    @Override
    public InsertOperatorResulet getResult() {
        return this;
    }
}
